/*
 * Miya.com Inc.
 * Copyright (c) 2004-2018 All Rights Reserved.
 */
package com.miya.erpmofa.common.lang.request.batch;

import com.miya.erpmofa.common.lang.request.single.BaseRequest;
import com.miya.erpmofa.common.lang.response.commodity.single.CommodityInfo;
import lombok.Data;

import java.security.MessageDigest;
import java.util.List;
import java.util.Map;

/**
 * 商品数据批量更新请求参数对象
 *
 * @author ${guanzhong}
 * @version $Id: CommodityBatchUpdateRequest.java, v 0.1 2017年12月27日 下午2:52 Exp $
 */
@Data
@SuppressWarnings("unused")
public class CommodityBatchUpdateRequest extends BaseRequest {

    private static final long serialVersionUID = 1119583263326632994L;
    /**
     * 商品信息集合,最大个数100
     */
    private List<CommodityBatchItem> itemList;

    @Override
    public void appendMap(final Map<String, String> baseMap) {
        if (itemList != null) {
            baseMap.put("itemList", itemList.toString());
        }
    }
}
